package cn.singleton;

/**
 * 饿汉模式
 * 没有延迟加载
 * @auth wzy
 * @date 2023/11/4 9:30
 */

public class BeiFactory {

    private BeiFactory() {

        System.out.println("创建BeiFactory");
        // 读取配置文件

    }

    private static BeiFactory waFactory = new BeiFactory();

    public static BeiFactory getInstance(){
        return waFactory;
    }
}
